package com.dhu.stylefit.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ClothesOneRepository extends JpaRepository<ClothesOne, Integer>, JpaSpecificationExecutor<ClothesOne> {
    List<ClothesOne> findByCategoryId(Integer categoryId);

    List<ClothesOne> findByNameContaining(String keyword);

    List<ClothesOne> findByPriceBetween(Float minPrice, Float maxPrice);
}
